<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- v-bind: 强制绑定 -->
        <!-- 只能用在模板标签的内容,作为模板标签的内容  -->
        <!-- 插值语法可以直接访问vm身上的属性或方法 -->
        <!-- <img v-bind:src=imgSrc width="300" alt=""> -->
        <!-- <img v-bind:src=imgSrc v-bind:width=imgWidth alt=""> -->
        <!-- 简写方式 -->
        <img :src=imgSrc :width=imgWidth alt="">
    </div>
    <script>
        const vm = new Vue({
            el:'#app',
            data(){
                return {
                    message:'hello',
                    imgSrc:"https://t7.baidu.com/it/u=1819248061,230866778&fm=193&f=GIF",
                    imgWidth:500
                }
            }
        })
    </script>
</body>
</html>